<li class="item ">
<?php 
	if(empty($data->parent)){
		$level_w = 'w_10';
	}else{
		$parent = AdmMenu::model()->findByPk($data->zam_parentid);
		if($parent->zam_parentid==0){
			$level_w = 'w_20 ';
		}else{
			$level_w = 'w_40';
		}
	}
	
	$child=new AdmMenu();
	$child->unsetAttributes();
	$child->zam_parentid=$data->zam_id;
?>
	<ul class="c_f p_5 list_table2">
		<li class="w_180 f_l">
			<div class="<?php echo $level_w; ?> f_l">&nbsp;</div>
			<span class="mem_ico ico_fold"></span>
			<span>&nbsp;
				<?php echo CHtml::link(CHtml::encode($data->zam_title),$data->zam_url,array('target'=>"_blank")); ?>
			</span>	
		</li>

		<li class="w_215 f_l t_l">&nbsp;
			<?php echo CHtml::textField('AdmMenu['.$data->zam_id.'][zam_url]',$data->zam_url,array('class'=>'w_170')); ?>
		</li>
		<li class="w_100 f_l t_c">&nbsp;
			<?php echo CHtml::textField('AdmMenu['.$data->zam_id.'][zam_listorder]',$data->zam_listorder,array('class'=>'w_40')); ?>
		</li>
		<li class="w_80 f_l t_c">&nbsp;
			<?php echo AdmMenu::model()->getType($data->zam_type) ?>
		</li>
		<li class="w_60 f_l t_c">&nbsp;
			<?php echo CHtml::link(AdmMenu::model()->getStatus($data->zam_status),array('changeStatus', 'id'=>$data->zam_id,'status'=>$data->zam_status)); ?>
		</li>
		<li class="w_100 f_l t_c">&nbsp;
			<?php echo CHtml::link('新建子菜单', array('create', 'pid'=>$data->zam_id)); ?>
		</li>
		<li class="w_100 f_l t_c">&nbsp;
			<?php echo CHtml::link(Yii::t('cmp','Delete'),'javascript:',array('class'=>'c_06c','onclick'=>'return art_del_confirm("/manage/admMenu/delete/id/'.$data->zam_id.'","你确定要删除这条信息吗？")'))?> 
			<?php echo CHtml::link('修改', array('update', 'id'=>$data->zam_id),array('class'=>'c_06c')); ?>
		</li>
	</ul>
	<?php  $this->widget('zii.widgets.CListView', array(
		'dataProvider'=>$child->search(),
		'itemView'=>'_view',
		'emptyText'=>"",
		'enablePagination'=>'false',
		'template'=>'{items}',
		'itemsCssClass'=>'',
		'summaryText'=>'',
		'tagName'=>'ul',
		'htmlOptions'=>array('class'=>'sub_class')
	)); ?>
</li>